package com.example.administrator.rxjavarxandroid_retrofit.util;

import android.content.Context;
import android.widget.Toast;

import javax.inject.Inject;

/**
 * Created by Administrator on 2016/12/14.
 */
public class ToastUtil {

    @Inject
    public ToastUtil() {
    }

    public void showToastShort(Context context, String message){
        Toast.makeText(context,message,Toast.LENGTH_SHORT).show();
    }

    public static void showToastShort(Context context,int message){
        Toast.makeText(context,message,Toast.LENGTH_SHORT).show();
    }

    public static void showToastLong(Context context,String message){
        Toast.makeText(context,message,Toast.LENGTH_LONG).show();
    }

    public static void showToastLong(Context context,int message){
        Toast.makeText(context,message,Toast.LENGTH_LONG).show();
    }

}
